package com.qn.example.mapper;

import com.qn.example.pojo.DishFlavor;
import com.qn.example.pojo.SetmealDish;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 21276
 * @version 1.0
 * @date 2023/5/16 10:19
 */
public interface SetmealDishMapper {
    void batchSaveSetmealDish(@Param("setmealDishes") List<SetmealDish> setmealDishes);

    void deleteBysetmealIds(@Param("ids")List<Long> ids);

    @Select(" select * from setmeal_dish where  setmeal_id = #{id}")
    List<SetmealDish> findByDishId(Long id);
}
